using UnityEngine;

public class IngameTutorialLoadMap : InGameTutorialOnEnable
{
	public override bool OnStepStart(string name)
	{
		if (name.Contains("_PVP") && Application.loadedLevelName != "Level1")
		{
			name = name.Replace("_PVP", string.Empty);
		}
		if (name.Contains("_BOX") && Application.loadedLevelName == "Level1")
		{
			name = name.Replace("_BOX", string.Empty);
		}
		if (base.OnStepStart(name))
		{
			for (int i = 0; i < values.Length; i++)
			{
				if (values[i].used)
				{
					Invoke("Use", waitTime + 0.1f);
					if (disable != null)
					{
						disable.SetActive(false);
					}
					return true;
				}
			}
		}
		return false;
	}
}
